<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<s:if test="%{session['connecte']==true}">
<div>
<table>
<tr><th>nom</th><th>email</th><th>login</th><th>password</th><th>option</th>   </tr>
<tr>
<s:iterator value="user">
<tr>
<td><s:property value="nom" /></td>
<td><s:property value="email" /></td>
<td><s:property value="login" /></td>
<td><s:property value="password" /></td>
<td><s:a href="update?pk=%{Logi}">modif</s:a><s:a href="delete?pk=%{Logi}">supp</s:a></td>
</tr>
</s:iterator>
</tr>
</table>
</div>
<div>
<s:actionerror/>
<form action="updt" method="get">
<s:hidden name="pk" value="%{pk}"></s:hidden>
<p><s:textfield name="nom" label="nom" value="%{nom}"></s:textfield></p>

<p><s:textfield name="email" label=" email" value="%{email}" ></s:textfield></p>
<p><s:textfield name="login" label=" login" value="%{login}"></s:textfield></p>
<p><s:textfield name="password" label="mot de passe" value="%{password}" ></s:textfield></p>
<s:submit  value="add" ></s:submit> 
<s:submit value="updt"></s:submit>
</form>
</div>
</s:if>
<s:else><h3>error</h3></s:else>
</body>
</html>